package app.core.model;

import app.core.enums.MessageType;

/**
 * 消息接口 - 定义消息
 */
public interface IMessage {
    String TYPE = "type";
    String MESSAGE = "message";
    String TIME = "time";
    String WHO = "who";
    String NAME = "name";
    String HEAD = "head";
    void  setData(String name, String value);
    String getData(String name);
    String getMessage();
    void setMessage(String msg);
    MessageType getType();
    void setType(MessageType type);
}
